<if condition="is_login()">
<else/>
<!-- 登录弹窗 -->
<div class="modal fade" id="login-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">×</span><span class="sr-only">Close</span>
                </button>
                <h4 class="modal-title">用户登录</h4>
            </div>
            <div class="modal-body">
                <form class="form login-modal" action="{:U('Home/User/login')}" method="post">
                    <fieldset>
                        <div class="form-group">
                            <label class="item-label">账号<span class="check-tips"></span></label>
                            <div class="control">
                                <input type="text" class="form-control" placeholder="请输入用户名" ajaxurl="/member/checkUserNameUnique.html" errormsg="请填写1-16位用户名" nullmsg="请填写用户名" datatype="*1-16" value="" name="username">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="item-label">密码<span class="check-tips"></span></label>
                            <div class="control">
                                <input type="password" class="form-control" placeholder="密码" errormsg="密码为6-20位" nullmsg="请填写密码" datatype="*6-20" name="password">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="item-label"> <a href="{:U('Home/User/register')}">立刻注册</a> <a href="{:U('Home/User/resetPassword')}">忘记密码</a> </label>
                            <button type="submit" class="btn btn-primary btn-block ajax-post submit" target-form="login-modal" data-loading-text="正在登录...">
                                登 录
                            </button>
                        </div>
                    </fieldset>
                </form>
                {:hook('SyncLogin')} <!-- 第三方登陆钩子 -->
            </div>
        </div>
    </div>
</div>
</if>

<!-- 报名弹窗 -->
<div class="modal fade" id="baoming-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">×</span><span class="sr-only">Close</span>
                </button>
                <h4 class="modal-title">咨询意向</h4>
            </div>
            <div class="modal-body">
                <form class="form baoming-modal" action="{:U('Home/User/baoming')}" method="post">
                    <fieldset>
                        <div class="form-group">
                            <label class="item-label">姓名<span class="check-tips"></span></label>
                            <div class="control">
                                <input type="text" class="form-control" placeholder="姓名" name="realname">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="item-label">电话<span class="check-tips"></span></label>
                            <div class="control">
                                <input type="text" class="form-control" placeholder="请输入联系电话" name="mobile">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="item-label">学院<span class="check-tips"></span></label>
                            <div class="control">
                                <select name="university" class="form-control select">
                                    <option value="">请选择：</option>
                                    <option value="北京理工大学珠海校区" selected="">北京理工大学珠海校区</option>
                                    <option value="北京师范大学珠海校区">北京师范大学珠海校区</option>
                                    <option value="中山大学珠海校区">中山大学珠海校区</option>
                                    <option value="其它">其它</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="item-label">专业<span class="check-tips"></span></label>
                            <div class="control">
                                <input type="text" class="form-control" placeholder="请输入专业" name="subject">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="item-label">年级<span class="check-tips"></span></label>
                            <div class="control">
                                <select name="grade" class="form-control select">
                                    <option value="">请选择：</option>
                                    <option value="大一">大一</option>
                                    <option value="大二">大二</option>
                                    <option value="大三">大三</option>
                                    <option value="大四">大四</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <input type="hidden" name="reg_way" value="iic.cn" />
                            <input type="hidden" name="reg_way_type" value="web" />
                            <button type="submit" class="btn btn-primary btn-block ajax-post submit" target-form="baoming-modal" data-loading-text="提交表单...">
                                提交表单
                            </button>
                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
</div>
</div>